﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WordTemplate2.Pannel
{
    public partial class LettersColumnPanel : Form
    {
        public LettersColumnPanel()
        {
            InitializeComponent();
            domainUpDown1.SelectedIndex = 0;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            object style = "标准文件_字母编号列项";
            Globals.ThisDocument.Application.Selection.ParagraphFormat.set_Style(ref style);
            Globals.ThisDocument.Application.Selection.TypeText(domainUpDown1.Text + ")　");
            this.Visible = false;
            this.Close();
        }
    }
}
